package com.ljz.mapper;

import com.ljz.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User login(User user);
    int insertUser(User user);
    int update(User user);
    int delete(int id);
    List<User> findAllByPage(String username);
    User findByName(String name);
    int checkName(String name);
    int deleteUserById(List<Integer> ids);
}
